package com.study.hot.rx

import com.study.base.BaseActivity
import com.study.hot.R
import kotlinx.android.synthetic.main.activity_rx.*
import org.jetbrains.anko.sdk27.coroutines.onClick
import org.jetbrains.anko.startActivity

/**
 * <pre>
 *     author : fauks
 *     time   : 2020/03/27
 *     desc   :
 * </pre>
 */
class RxActivity : BaseActivity() {
    override fun generateLayoutId() = R.layout.activity_rx

    override fun initView() {
        super.initView()
        toRxBindingBtn.onClick {
            startActivity<RxBindingActivity>()
        }

        toRxJavaBtn.onClick {
            startActivity<RxJavaActivity>()
        }
    }
}